package com.chuangke.common.sqlparser;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class CkPageQuery<T> {

	private static final Integer PAGE_CURRENT = 1;// 当前页码
	private static final Integer PAGE_SIZE = 10; // 每页条数

	private Integer current;
	private Integer size;

	private CbExp cbExp;

	public Page<T> getPage() {
		return new Page<>(getPageCurrent(), getPageSize());
	}

	public int getPageCurrent() {
		return current == null ? PAGE_CURRENT : current;
	}

	public int getPageSize() {
		return size == null ? PAGE_SIZE : size;
	}

	public CbExp getCbExp() {
		return cbExp;
	}

	public void setCbExp(CbExp cbExp) {
		this.cbExp = cbExp;
	}
}
